<table class="xsui-table xsui-table-striped xsui-table-hover xsui-table-bordered">
    <thead>
        <tr>
            <th>名称</th>
            <th>备注</th>
            <th>排序</th>
            <th>状态</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <foreach name="list" item="vo">
        <tr data-key="{$vo.id}">
            <td>{$vo.title}</td>
            <td>{$vo.remark}</td>
            <td class="sort"><input type="text" value="{$vo.sort}" size="3" data-value="{$vo.sort}" data-url="{:U('change_sort','id='.$vo['id'].'&sort=varsort')}" /></td>
            <td class="status">
        <if condition="$vo['status'] eq '1'">
            <a href="{:U('change_status','id='.$vo['id'].'&status=0')}" title="点击禁用" class="xsui-success"><i class="fa fa-check fa-fw"></i>启用</a>
            <else/>
            <a href="{:U('change_status','id='.$vo['id'].'&status=1')}" title="点击启用" class="xsui-danger"><i class="fa fa-times fa-fw"></i>禁用</a>
        </if></td>
        <td>{$vo.create_time}</td>
        <td>
            <ul class="xsui-operate-group">
                <li><a href="#" class="xsui-btn ui-state-default xsui-icon-right">操作<i class="fa fa-caret-square-o-down"></i></a>
                    <ul>
                        <li><a href="{:U('type_edit','id='.$vo['id'])}" class="lnk-edit" data-id="{$vo.id}" title="编辑 {$vo.title}"><i class="fa fa-edit fa-fw"></i>编辑</a></li>
                        <li><a href="{:U('type_delete','id='.$vo['id'])}" class="lnk-remove" data-confirm="{'code':'zhan123'}" data-id="{$vo.id}" title="删除 {$vo.title}"><i class="fa fa-remove fa-fw"></i>删除</a></li>
                        <li><a href="{:U('UserAttr/attr_list','type_id='.$vo['id'])}" class="lnk-edit" title="属性管理 - {$vo.title}"><i class="fa fa-list-alt fa-fw"></i>属性管理</a></li>
                    </ul>
                </li>
            </ul>
        </td>
        </tr>
    </foreach>
</tbody>
</table>
<div class="xsui-pagination">{$page}</div>